﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<DomainModel.User>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Регистрация нового пользователя</title>
      <style type="text/css">
	* {margin:0; padding:0;}

html {
	font: 90%/1.3 arial,sans-serif;
	padding:1em;
	background:#fafafa;
}
form {
	background:#fff;
	padding:1em;
	border:1px solid #eee;
	width:22em;
}

fieldset div {
	margin:0.3em 0;
	clear:both;
}
form {
	margin:1em;
}
label {
	float:left;
	text-align:right;
	margin-right:1em;
}
legend {
	color:#0b77b7;
	font-size:1.2em;
}
legend span {
	text-align:right;
}
input {
	padding:0.15em;
	border:1px solid #ddd;
	background:#fafafa;
	font:bold 0.95em arial, sans-serif;
	width:16em;
	-moz-border-radius:0.4em;
	-khtml-border-radius:0.4em;	
}
input:hover, input:focus {
	border-color:#c5c5c5;
	background:#f6f6f6;
} 
fieldset {
	border:1px solid #ddd;
	padding:0 0.5em 0.5em;
}

input.default {
	color:#bbb;
}

.editor-field
{
	text-align:left;
}
a
{
	text-decoration:none;
}

.field-validation-error
{
	color:Red;
	font-size:larger;
}

#submit-go {
background:none repeat scroll 0 0 #555555;
border:1px solid #333333;
color:#FFFFFF;
font-size:100%;
padding:2px 1em;
}

#backhref {
background:none repeat scroll 0 0 #0b77b7;
border:1px solid #333333;
color:#FFFFFF;
font-size:100%;
padding:2px 1em;
}
  </style>
</head>

<body>
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
 <center>
 <div style="height:5em"></div>
 <% Html.EnableClientValidation();  %>
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Регистрация нового пользователя</legend>
            
            <div class="editor-label">
                 <label for="Login">Имя пользователя</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Login) %>
                <%= Html.ValidationMessageFor(model => model.Login) %>
            </div>
            
            <div class="editor-label">
                <label for="Password">Пароль</label>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(model => model.Password) %>
                <%= Html.ValidationMessageFor(model => model.Password) %>
            </div>
                        
             <div class="editor-label">
               <label for="Surname">Фамилия</label>
            </div>
            
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Surname) %>
                <%= Html.ValidationMessageFor(model => model.Surname) %>
            </div>
            
            <div class="editor-label">
                  <label for="Name">Имя</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <label for="Patro">Отчество</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Patro) %>
                <%= Html.ValidationMessageFor(model => model.Patro) %>
            </div>            
            
            <div class="editor-label">
                 <label for="Organisation">Наименование организациии</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Organization) %>
                <%= Html.ValidationMessageFor(model => model.Organization)%>
            </div>
                        
             <div class="editor-label">
                 <label for="Phone">Телефон</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Phone) %>
                <%= Html.ValidationMessageFor(model => model.Phone)%>
            </div>
            
            <div class="editor-label">
                 <label for="Email">E-mail</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Email) %>
                <%= Html.ValidationMessageFor(model => model.Email) %>
            </div>                      
            
            
            <div class="editor-label">
                  <label for="ManagerMail">E-mail менеджера.</label>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ManagerMail) %>
                <%= Html.ValidationMessageFor(model => model.ManagerMail) %>
            </div>
            
            <p>
                 <button type="submit" id="submit-go">Сохранить</button>
            </p>
        </fieldset>

    <% } %>

    <div>
      <a href="/" id="backhref">Назад.</a>
    </div>
    </center>
</body>
</html>

